#!/bin/bash
##set vars##

export github_proxy="https://gh.con.sh/"

function get_github_latest()
{
    latest_url=$1

    curl -s -I  ${github_proxy}${latest_url}|grep -i location|awk -F/ '{print$NF}'|sed 's/v//g' > /tmp/version;dos2unix /tmp/version;
    echo `cat /tmp/version`;
}